package logger;

import java.io.BufferedWriter;
import java.io.IOException;
import java.io.Serializable;

import javax.inject.Inject;

public class LoggerComCDI implements Logger, Serializable{

	private static final long serialVersionUID = 1L;
	
	@Inject 
	BufferedWriter writer;
	
	@Override
	public void gravar(String msg) {
		try {
			writer.newLine();
			writer.append(msg);		
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

}
